<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<%@ include file="../../base.jsp"%>
<!DOCTYPE html>
<html>

<head>
    <!-- 页面meta -->
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>数据 - AdminLTE2定制版</title>
    <meta name="description" content="AdminLTE2定制版">
    <meta name="keywords" content="AdminLTE2定制版">
    <!-- Tell the browser to be responsive to screen width -->
    <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
    <!-- 页面meta /-->
</head>
<body>
<div id="frameContent" class="content-wrapper" style="margin-left:0px;">
    <!-- 内容头部 -->
    <section class="content-header">
        <h1>
            货运管理
            <small>新增出口报运单</small>
        </h1>
        <ol class="breadcrumb">
            <li><a href="/"><i class="fa fa-dashboard"></i> 首页</a></li>
            <li><a href="${ctx}/cargo/export/list.do">货运管理</a></li>
            <li><i class="fa fa-dashboard"></i>新增装运单</li>
        </ol>
    </section>
    <!-- 内容头部 /-->

    <!-- 正文区域 -->
    <section class="content">

        <!--订单信息-->
        <div class="panel panel-default">
            <div class="panel-heading">新增装运单</div>
            <form id="editForm" action="${ctx}/cargo/packing/addPacking.do" method="post">
                <input type="hidden" id="id" name="packingListId" value="${packing.packingListId}">
                <input type="hidden" name="exportIds" value="${packing.exportIds}">
                <div class="row data-type" style="margin: 0px">

                    <div class="col-md-2 title">报运合同号</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="报运合同号" name="exportNos" value="${packing.exportNos}" readonly>
                    </div>

                    <div class="col-md-2 title">装箱时间</div>
                    <div class="col-md-4 data">
                        <div class="input-group date">
                            <div class="input-group-addon">
                                <i class="fa fa-calendar"></i>
                            </div>
                            <input type="text" placeholder="装箱时间"  name="packingTime" class="form-control pull-right" id="packingTime">
                        </div>
                    </div>

                    <div class="col-md-2 title">总体积</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="总体积" name="totalVolume" value="${packing.totalVolume}" readonly>
                    </div>

                    <div class="col-md-2 title">总净重</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="总净重" name="netWeights" value="${packing.netWeights}" readonly>
                    </div>

                    <div class="col-md-2 title">总毛重</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="总毛重" name="grossWeights" value="${packing.grossWeights}" readonly>
                    </div>

                    <div class="col-md-2 title">唛头</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="唛头" name="marks" value="${packing.marks}">
                    </div>

                    <div class="col-md-2 title">描述</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="描述" name="descriptions" value="${packing.descriptions}">
                    </div>

                    <div class="col-md-2 title">装箱费用</div>
                    <div class="col-md-4 data">
                        <input type="text" class="form-control" placeholder="装箱费用" name="packingMoney" value="${packing.packingMoney}" readonly>
                    </div>

                </div>
            </form>
        </div>
        <!--订单信息/-->

        <!--工具栏-->
        <div class="box-tools text-center">
            <button type="button" onclick='document.getElementById("editForm").submit()' class="btn bg-maroon">保存</button>
            <button type="button" class="btn bg-default" onclick="history.back(-1);">返回</button>
        </div>
        <!--工具栏/-->

    </section>
    <!-- 正文区域 /-->

</div>
<!-- 内容区域 /-->
</body>
<script src="${ctx}/plugins/datepicker/bootstrap-datepicker.js"></script>
<script src="${ctx}/plugins/datepicker/locales/bootstrap-datepicker.zh-CN.js"></script>
<link rel="stylesheet" href="${ctx}/css/style.css">
<script>
    $('#datepicker').datepicker({
        autoclose: true,
        format: 'yyyy-mm-dd'
    });
    $('#datepicker1').datepicker({
        autoclose: true,
        format: 'yyyy-mm-dd'
    });
</script>
</html>